/**
 *  Copyright (c)  2010  Angel Ortiz.
 *  Permission is granted to copy, distribute and/or modify this document
 *  under the terms of the GNU Free Documentation License, Version 1.3
 *  or any later version published by the Free Software Foundation;
 *  with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 *  A copy of the license is included in the section entitled "GNU
 *  Free Documentation License". 
 */

package view;

import data.Images;
import data.OverviewData;

/**
 * @author Angel Ortiz
 * @date 03/19/2010
 * 
 */
public class ArmyOverview extends OverviewImgTextLayer {

	private static final long serialVersionUID = -7598093483445996239L;

	public ArmyOverview(OverviewData data, Images images) {
		super(data, images);
	}

	@Override
	public String[] getColumns() {
		final String[] COL_NAMES = { " Id", "Size", "Offensive", "Deffensive",
				"Armor", "Upkeep", "Allocation", "Movement", "Health",
				"Mission" };
		return COL_NAMES;
	}

	@Override
	public String[][] getData() {
		return this.data.getArmyData();
	}

	@Override
	public int getHeight() {
		return 600;
	}

	@Override
	public int getNumberOfRows() {
		return data.getNumOfArmies();
	}

	@Override
	public String[] getRow(int index) {
		String[] row = null;
		String[][] xdata = data.getArmyData();
		if (xdata.length > index) {
			row = xdata[index];
		}
		return row;
	}

	@Override
	public String getTitle() {
		return " Army Overview ";
	}

	@Override
	public int getWidth() {
		return 1024;
	}

	@Override
	public int getXCoordinate() {
		return 0;
	}

	@Override
	public int getYCoordinate() {
		return 0;
	}

}
